package service.clazz;

import entity.table.TableDto;
import entity.table.TableFileDto;
import entity.table.TableInfoDto;
import service.clazz.interfaces.ClazzStrategy;

import java.util.List;

public class ContextStrategy {

    private ClazzStrategy strategy;

    public ContextStrategy(ClazzStrategy strategy) {
        this.strategy = strategy;
    }

    public TableFileDto contextInterface(List<TableDto> list, TableInfoDto table) {
        return strategy.enerateStrategy(list, table);
    }
}